package com.gyyx.cn.transaction.test.controller;

import com.gyyx.cn.transaction.test.bean.RequestVO;
import com.gyyx.cn.transaction.test.bean.TransferVO;
import com.gyyx.cn.transaction.test.service.TransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: 王海新
 * @date: 2021/12/9/0009 15:56
 * @version: 1.0
 * @description: TODO
 */
@Controller
@ResponseBody
@RequestMapping("/transfer")
public class transactionController {

    @Autowired
    TransferService transferService;

    @RequestMapping("/transfer")
    public RequestVO transferController(TransferVO transferVO){
        transferService.transferService(transferVO);
        RequestVO requestVO = new RequestVO();
        requestVO.setStatus(200);
        return requestVO;
    }

}
